PriorityQueue class¶
Defined in
Namespace: ReactiveUI.Primitives.Core
Assembly: ReactiveUI.Primitives.Core.dll
Full name: ReactiveUI.Primitives.Core.PriorityQueue<T>
Modifiers: public sealed
Summary¶
Binary heap priority queue that preserves insertion order for equal-priority items.
Applies to
net10.0, net10.0-browserwasm1.0, net10.0-desktop1.0, net9.0, net9.0-browserwasm1.0, net9.0-desktop1.0, net8.0, net8.0-ios17.5, net8.0-maccatalyst17.5, net8.0-macos14.2, net8.0-macos14.5, net8.0-tvos17.2, netstandard2.1, net462, net481
Constructors¶
| Name | Summary |
|---|---|
| .ctor | Initializes a new instance of the [PriorityQueue](# class. |
Properties¶
| Name | Summary |
|---|---|
| Count | Gets the number of queued items. |
Methods¶
| Name | Summary |
|---|---|
| Dequeue | Removes and returns the highest-priority item. |
| DequeueSome | Removes up to count queued items in priority order. |
| DequeueAll | Removes and returns all queued items in priority order. |
| DequeueRange | Dequeues items into a caller-provided buffer. |
| Enqueue | Adds an item to the queue. |
| EnqueueRange | Adds multiple items to the queue. |
| Peek | Returns the highest-priority item without removing it. |
| TryPeek | Attempts to return the highest-priority item without removing it. |
| TryDequeue | Attempts to remove and return the highest-priority item. |
| Remove | Removes a matching item from the queue. |
| VerifyHeapProperty | Verifies that the internal heap property is currently valid. |